package com.hth.stockspiderv3.vo;

import lombok.Data;

@Data
public class KLineParseVo {

    private String date;
    private String time;
    private KLineVo kline;
    private MaVo ma5;
    private MaVo ma10;
    private MaVo ma20;
    private MacdVo macd;
    private String key;
    private String kline_data_type_name;

    @Data
    private class KLineVo {
        private String open;
        private String high;
        private String low;
        private String close;
        private String volume;
        private String amount;
        private String preClose;
        private String netChangeRatio;
        private String turnoverratio;
        private String increase;
    }

    @Data
    private class MaVo {
        private String volume;
        private String avgPrice;
    }

    @Data
    private class MacdVo {
        private String diff;
        private String dea;
        private String macd;
    }

    @Override
    public String toString() {
        return "KLineParseVo{" +
                "date='" + date + '\'' +
                ", time='" + time + '\'' +
                ", kline=" + kline +
                ", ma5=" + ma5 +
                ", ma10=" + ma10 +
                ", ma20=" + ma20 +
                ", macd=" + macd +
                ", key='" + key + '\'' +
                ", kline_data_type_name='" + kline_data_type_name + '\'' +
                '}';
    }
}
